<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        /* 
            需求：将array1的内同从cc-ff复制出来
            const array1 = ['aa','bb','cc','dd','ee','ff'];
         */

         const array1 = ['aa','bb','cc','dd','ee','ff'];
          
         console.log(array1.slice(2))
         
         console.log(array1.slice(1,3))//'bb','cc'         //包头不包尾

         console.log(array1.slice())        //全选

    </script>
</head>
<body>
    
</body>
</html>